home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Larry Magid's Essential Internet
/
Larry Magid's Essential Internet (Quarterdeck Corporation)(1995).ISO
/
qsockpro.qip
/
MAGNA.MPS
< prev
next >
Wrap
Text File
|
1995-10-09
|
1KB
|
56 lines
# Magnadata (Australia) PPP login script
# Copyright 1995 Quarterdeck Corporation
# 5-12-95 Earl White
String username
String password
TRACE OFF
SetTimeout 90 # reset maximum script timeout
# Get IP address from qdeck.ini
CfgGetValue "IPaddress" IP
IF result = 0 THEN
GetInput "Enter your IP Address:" IP
IF result = 0 THEN
PRINT "Warning, no IP Address entered."
ELSE
PRINT "IP Address set to:"; IP
ENDIF
ENDIF
# Get username from access method
CfgGetValue "Username" username
IF result = 0 THEN
GetInput "Enter your username:" username
IF result = 0 THEN
PRINT "Warning, no username entered."
ELSE
PRINT "Username set to:"; username
ENDIF
ENDIF
CfgGetValue "Password" password
IF result = 0 THEN
GetPassword "Enter your password:" password
IF result = 0 THEN
PRINT "Warning, no password entered."
ELSE
PRINT "Password set."
ENDIF
ENDIF
CommWaitFor "login: " # wait for username
CommSend username # send user name
CommSend "%r" # send carriage return
CommWaitFor "word: " # wait for password prompt
CommSend password # send password
CommSend "%r" # send carriage return
END #success if we got this far